package www.xpu.edu.app.job;

import android.content.Intent;
import android.support.v7.app.ActionBar;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

import java.util.ArrayList;

import www.xpu.edu.app.R;

public class Activity_job7 extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_job7);
        ActionBar actionBar = getSupportActionBar();
        if (actionBar != null) {
            actionBar.hide();
        }

        Button button1=findViewById(R.id.title_back);
        button1.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });
        Button button2=findViewById(R.id.title_change);
        button2.setVisibility(View.INVISIBLE);
        TextView text=findViewById(R.id.title_text);
        text.setText("职位管理");



        TextView text1=findViewById(R.id.job7_text1);
        TextView text2=findViewById(R.id.job7_text2);
        TextView text3=findViewById(R.id.job7_text3);
        TextView text4=findViewById(R.id.job7_text4);
        TextView text5=findViewById(R.id.job7_text5);
        TextView text6=findViewById(R.id.job7_text6);
        TextView text7=findViewById(R.id.job7_text7);
        TextView text8=findViewById(R.id.job7_text8);
        Intent intent = getIntent();
        ArrayList<String> data = intent.getStringArrayListExtra("data");
        text1.setText("公司名称:"+data.get(0));
        text2.setText("招聘类型:"+data.get(1));
        text3.setText("工作地点:"+data.get(2));
        text4.setText("职位名称:"+data.get(3));
        text5.setText("工作经验:"+data.get(4));
        text6.setText("每月薪水:"+data.get(5));
        text7.setText("学历要求:"+data.get(6));
        text8.setText("职位职责及要求\n"+data.get(7));



    }
}
